import request from '@/utils/request'

// 创建拣货物料明细
export function createPickTaskMaterialDetail(data) {
  return request({
    url: '/hs/pick-task-material-detail/create',
    method: 'post',
    data: data
  })
}

// 更新拣货物料明细
export function updatePickTaskMaterialDetail(data) {
  return request({
    url: '/hs/pick-task-material-detail/update',
    method: 'put',
    data: data
  })
}

// 删除拣货物料明细
export function deletePickTaskMaterialDetail(id) {
  return request({
    url: '/hs/pick-task-material-detail/delete?id=' + id,
    method: 'delete'
  })
}

// 获得拣货物料明细
export function getPickTaskMaterialDetail(id) {
  return request({
    url: '/hs/pick-task-material-detail/get?id=' + id,
    method: 'get'
  })
}

// 获得拣货物料明细分页
export function getPickTaskMaterialDetailPage(params) {
  return request({
    url: '/hs/pick-task-material-detail/page',
    method: 'get',
    params
  })
}
// 导出拣货物料明细 Excel
export function exportPickTaskMaterialDetailExcel(params) {
  return request({
    url: '/hs/pick-task-material-detail/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

// 获得待拣物料明细
export function getPickTaskMaterialDetailList(params) {
  return request({
    url: '/hs/pick-task-material-detail/list',
    method: 'get',
    params
  })
}
